<template>
  <el-dialog :title="'错误'" :width="'80%'">
    <el-empty :image-size="180">
      <template #message>
        {{ message }}
      </template>
      <el-button type="primary" size="large" @click="close" round>关闭</el-button>
    </el-empty>
  </el-dialog>
</template>

<script>
export default {
  props: {},
  emits: ["update:modeValue", "success"],
  data() {
    return {
      message: "无效",
    };
  },
  methods: {
    close() {
      this.$emit("update:modeValue", false);
    },
    setData(data) {
      this.message = data;
      console.log(this.message);
    },
  },
};
</script>

<style></style>
